﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;

namespace IOA.MES.DataAccess.VModel
{
    public class VIVLocalInfo
    {
        private string _machineName;
        private string _manufacturers;
        private string _machineModel;
        private string _workshopCode;
        private string _workshopName;
        private string _lineName;
        private string _sql;

        /// <summary>
        /// 设备ID
        /// </summary>
        public int MachineId { get; set; }

        ///<Summary>
        /// 设备名称
        ///</Summary>
        public string MachineName
        {
            get { return string.IsNullOrWhiteSpace(_machineName) ? string.Empty : _machineName; }
            set { _machineName = value; }
        }

        ///<Summary>
        /// 设备厂家
        ///</Summary>
        public string Manufacturers
        {
            get { return string.IsNullOrWhiteSpace(_manufacturers) ? string.Empty : _manufacturers; }
            set { _manufacturers = value; }
        }

        ///<Summary>
        /// 设备型号
        ///</Summary>
        public string MachineModel
        {
            get { return string.IsNullOrWhiteSpace(_machineModel) ? string.Empty : _machineModel; }
            set { _machineModel = value; }
        }

        ///<Summary>
        /// 车间代码
        ///</Summary>
        public string WorkshopCode
        {
            get { return string.IsNullOrWhiteSpace(_workshopCode) ? string.Empty : _workshopCode; }
            set { _workshopCode = value; }
        }

        ///<Summary>
        /// 车间名称
        ///</Summary>
        public string WorkshopName
        {
            get { return string.IsNullOrWhiteSpace(_workshopName) ? string.Empty : _workshopName; }
            set { _workshopName = value; }
        }

        ///<Summary>
        /// 流水线名称
        ///</Summary>
        public string LineName
        {
            get { return string.IsNullOrWhiteSpace(_lineName) ? string.Empty : _lineName; }
            set { _lineName = value; }
        }

        /// <summary>
        /// SQL语句
        /// </summary>
        public string Sql
        {
            get { return string.IsNullOrWhiteSpace(_sql) ? string.Empty : _sql; }
            set { _sql = value; }
        }
    }
}
